package com.navinfo.platform.dataanalysis.range;

import com.google.common.collect.Range;

/**
 * 速度区间
 *
 * @author machi
 * @create 2018/6/21
 */

public enum SpeedRange {

    /**
     *
     */
    SPEED_RANGE_10(Range.closedOpen(0,10)),
    SPEED_RANGE_20(Range.closedOpen(10,20)),
    SPEED_RANGE_30(Range.closedOpen(20,30)),
    SPEED_RANGE_40(Range.closedOpen(30,40)),
    SPEED_RANGE_50(Range.closedOpen(40,50)),
    SPEED_RANGE_60(Range.closedOpen(50,60)),
    SPEED_RANGE_70(Range.closedOpen(60,70)),
    SPEED_RANGE_80(Range.closedOpen(70,80)),
    SPEED_RANGE_90(Range.closedOpen(80,90)),
    SPEED_RANGE_100(Range.closedOpen(90,100)),
    SPEED_RANGE_110(Range.closedOpen(100,110)),
    SPEED_RANGE_120(Range.closedOpen(110,120)),
    SPEED_RANGE_OVER_120(Range.atLeast(120)),
    SPEED_VALID(Range.closed(0,200)),
    ;

    private Range<Integer> range;

    SpeedRange(Range<Integer> range) {
        this.range = range;

    }

    public Range<Integer> getRange() {
        return range;
    }



}
